import request from 'utils/request'
// import qs from 'qs'
// 发送商品分类的请求
const fetchFenlei = (params = {}) => request.get('/shop/goods/category/all', {
  params
})
const getBanners = (params = {}) => request.get('/banner/list')
const fenleiById = (params = {}) => request.post('/shop/goods/list',
  params// qs.stringify(params)
)
const DetailById = (id) => request.get('/shop/goods/detail', { params: { id } })
export {
  fetchFenlei,
  getBanners,
  fenleiById,
  DetailById
}
